home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / prog / ramswap.arj / RAMSWAP.DOC < prev    next >
Text File  |  1994-01-26  |  6KB  |  104 lines

  1.   ****  RAMSWAP.COM driver and RAMSWAP.TPU Turbo Pascal interface to driver.
  2.         (requires DOS 3.0 or higher)
  3.  
  4.         Use this address to register, registration info and fee info below.
  5.  
  6.         Author: Anthony W. Henry
  7.                 2307 23rd St. #1
  8.                 ZION, IL 60099
  9.  
  10.                 CS: 73073,3404
  11.                 INTERNET:  73073.3404@compuserve.com
  12.  
  13.    What is RAMSWAP.  
  14.    
  15.     RamSwap is an assembly language program written to allow a programmer
  16.     to write a large complex application under the DOS environment and still
  17.     have plenty of memory for child processes.  It takes a fairly simple 
  18.     approach. (I say simple, but it was my first and so far only major proj-
  19.     ect in pure assembly language, and was quite a chore.) When RAMSWAP is 
  20.     envoked from the command line it looks for a program with the same name
  21.     as the .COM file and the extension .EXE in the directory from which it
  22.     was launched.  It then executes that .EXE file and provides 1024 bytes
  23.     permanent (as long as RAMSWAP is loaded) storage for the .EXE file in
  24.     RAM.  The .EXE file is expected to leave the full path and file name to
  25.     another executable file and command line parameters for that program in
  26.     the RAMSWAP's Data segment.  (Procedures to simplify this are in the 
  27.     RAMSWAP Unit *** See RAMSWAP.INT *** So you don't have to mess around with
  28.     pointers if you don't want to).  The .EXE file then terminates, freeing
  29.     all it's memory,  RAMSWAP takes up about 2400 bytes of memory everything
  30.     else is left for the child.  Upon the childs termination RAMSWAP restarts
  31.     the control program.  This is approximately the same approach though
  32.     not quite as sophisticated as DOSSHELL takes in DOS 5 and 6 then again
  33.     DOSSHELL takes over 30,000 bytes from child programs.
  34.  
  35.  
  36.     Using RAMSWAP with Turbo Pascal.    
  37.       Do most of your complicated work and Debugging before
  38.     integrating the RAMSWAP unit into your application.  Once you use RAMSWAP
  39.     your application will not run correctly from the Development environment.
  40.     Use EXEC if testing child processes is essential to the debugging.
  41.  
  42.         Once this is done ( I know, it never really is done.) and you've
  43.     studied RAMSWAP.INT Go ahead and put the RAMSWAP unit in your 
  44.     USES statement for your program.  Change your program logic as required
  45.     for RAMSWAP's approach and give SWAPEXEC a try. 
  46.      
  47.     Compile your program to disk and make a copy of RAMSWAP.COM to use with 
  48.     your program.  To make RAMSWAP.COM load your program all you have to
  49.     do is give it the same name, put it in the same directory and have
  50.     DOS 3.0 or above (If you don't have at least 5.0 your probably in the
  51.     computer stone age any way)  
  52.  
  53.     EXAMPLE: 
  54.        Your program is an editor that loads a command line compiler to
  55.        compile program source code,  It's name is PREDIT.EXE (original Huh :-)
  56.        Just COPY RAMSWAP.COM PREDIT.COM and put PREDIT.COM in the same
  57.        directory where resides PREDIT.EXE then the command line PREDIT %1 %2
  58.        will load PREDIT.COM which will in turn load PREDIT.EXE passing it
  59.        all of the command line parameters given to PREDIT.COM and your
  60.        swap session is up and running. 
  61.  
  62. *****************************************************************************
  63. *                                                                           *
  64. *   POSSIBLE APPLICATIONS.                                                  *
  65. *                                                                           *
  66. *        That menu system you've alway wanted to write.                     *
  67. *                                                                           *
  68. *        A powerful programming editor that calls compilers and             *
  69. *        gives them plenty of memory.                                       *
  70. *                                                                           *
  71. *        A sophisticated accounting system where each sub-system takes      *
  72. *        most of DOS's memory.  (This one might be better accomplished      *
  73. *        with Overlays but RAMSWAP could do it too.)                        *
  74. *                                                                           *
  75. *        A COMMAND.COM replacement.                                         *
  76. *                                                                           *
  77. *                                                                           *
  78. *****************************************************************************
  79.  
  80.    Using it with other languages then PASCAL.  I'm currently working on 
  81.    a QuickBasic 4.5 .QLB and .LIB file to interface with it.  (I'm in
  82.    the computer stone age too, huh?)   If you are a C programmer and you 
  83.    send me $5.00 to cover my time and stamps I'll mail you a detailed 
  84.    enough description to interface with the module.  I haven't given the 
  85.    description a whole lot of thought yet but I have a good friend who
  86.    programs in C++ and we don't have to much problem converting info back
  87.    and forth.
  88.  
  89. Licensing:    
  90.      Personal use.  Use it as you see fit if it stays in your home, No charge.
  91.      Distribute it freely to BBS's as long as all of the files are included.
  92.      If you use it for a business or shareware application that makes money
  93.      I would greatly appreciate a registration fee of $20.00 for my time.
  94.      This would incline my wife greatly towards letting me program more.
  95.      All registrations will include printed source code to both the PASCAL
  96.      Unit and the Assembly module.
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.